package org.example.huadianguanli.entity;

import org.example.core.annotation.Field;
import org.example.core.annotation.Table;
import org.example.core.entity.SimpleEntity;
import org.example.core.mysql.convert.DoubleToBigDecimalConvert;

import java.math.BigDecimal;

/**
 * Description:
 * Date: 2024/2/14 23:13
 */
@Table(value = "t_order_shop")
public class TOrderShopEntity extends SimpleEntity {
    @Field(alias = "order_id")
    private String orderId;
    @Field(alias = "shop_name")
    private String shopName;
    @Field(alias = "shop_count")
    private int shopCount;
    @Field(alias = "shop_price", convert = DoubleToBigDecimalConvert.class)
    private Double shopPrice;
    @Field(alias = "shop_discount_price", convert = DoubleToBigDecimalConvert.class)
    private Double shopDiscountPrice;
    @Field(alias = "shop_type")
    private String shopType;

    public String getShopType() {
        return shopType;
    }

    public void setShopType(String shopType) {
        this.shopType = shopType;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public int getShopCount() {
        return shopCount;
    }

    public void setShopCount(int shopCount) {
        this.shopCount = shopCount;
    }

    public Double getShopPrice() {
        return shopPrice;
    }

    public void setShopPrice(Double shopPrice) {
        this.shopPrice = shopPrice;
    }

    public Double getShopDiscountPrice() {
        return shopDiscountPrice;
    }

    public void setShopDiscountPrice(Double shopDiscountPrice) {
        this.shopDiscountPrice = shopDiscountPrice;
    }
}
